package com.quick.develop.flowable.framework.convert.job;

import com.quick.develop.flowable.domain.job.BpmDeadJobPageItemRspVO;
import org.flowable.job.api.Job;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author junyuan.liu
 * @description:
 * @date 2022/9/21 9:27
 */
@Mapper
public interface BpmDeadJobConvert {
    BpmDeadJobConvert INSTANCE = Mappers.getMapper(BpmDeadJobConvert.class);

    BpmDeadJobPageItemRspVO convert(Job job);

    List<BpmDeadJobPageItemRspVO> convertList(List<Job> list);
}
